package com.crm.common.crm.entity.PO;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 投放统计表
 * </p>
 *
 * @author zhangzhiwei
 * @since 2020-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bill_crm_roi_statis")
@ApiModel(value="CrmRoiStatis对象", description="投放统计表")
public class CrmRoiStatis implements Serializable {

    private static final long serialVersionUID=1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "消耗渠道")
    private String putinPlatform;

    @ApiModelProperty(value = "总消耗金额")
    private BigDecimal allPutinMoney;

    @ApiModelProperty(value = "总回款金额")
    private BigDecimal receivablesMoney;

    @ApiModelProperty(value = "平均ROI")
    private BigDecimal averageRoi;

    @ApiModelProperty(value = "近3个月ROI总和")
    private BigDecimal roiMonth;

    @ApiModelProperty(value = "实际ROI")
    private BigDecimal realityRoi;

    @ApiModelProperty(value = "近3个月预期ROI总和")
    private BigDecimal expectRoiMonth;

    @ApiModelProperty(value = "预期ROI")
    private BigDecimal expectRoi;

    @ApiModelProperty(value = "总表单数量")
    private Integer allLeadsNum;

    @ApiModelProperty(value = "平均客单价")
    private BigDecimal averagePrice;

    @ApiModelProperty(value = "昨日消耗")
    private BigDecimal putinMoney;

    @ApiModelProperty(value = "昨日表单数量")
    private Integer leadsNum;

    @ApiModelProperty(value = "实际客单价")
    private BigDecimal realityPrice;


}
